package com.iflytek.zwxu.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.iflytek.zwxu.api.UserService;
import com.iflytek.zwxu.domin.UserVO;



public class Main {
	public static void main(String[] args) {  
		ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(	
				new String[] {"context-service.xml"});
			
				context.start();
				UserService demoService=(UserService) context.getBean("userService");
				/*for(UserVO u: demoService.getUsers())
				{
					System.out.println("from client :"+u.getName());
				}*/
				System.out.println("from client :"+demoService.update("58aa5147bc7680b485863313","xiaomi").isSuccess());
    }  
	
	
}
